package org.jeecg.tool;

import de.schlichtherle.license.*;

import java.io.File;

/**
 * @Author jeecg
 * @Description
 * @Date 2022/6/16 9:23
 */
public class MyLicenseVerifier {

    public synchronized LicenseContent install(String licensePath, LicenseManager licenseManager) throws Exception {
        licenseManager.uninstall();
        return licenseManager.install(new File(licensePath));
    }

    public void verify(LicenseManager licenseManager) throws Exception {
        licenseManager.verify();
    }

}
